﻿using D.Wx.Dtos;
using D.Wx.Entities;

namespace D.Wx.IRepository
{
    /// <summary>
    /// 系统管理员参数接口
    /// </summary>
    public interface ISysAdminEntityRepository
    {

        /// <summary>
        /// 获取最后一个分配的人
        /// </summary>
        /// <returns></returns>
        Task<SysAdminEntity> GetNextAdminId();

        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="sysAdminUser"></param>
        /// <returns></returns>
        Task<int> Add(SysAdminEntity sysAdminUser);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="sysAdminUser"></param>
        /// <returns></returns>
        Task<int> Update(SysAdminEntity sysAdminUser);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<int> Delete(List<string> ids);

        /// <summary>
        /// 分页查询
        /// </summary>
        /// <param name="pageQuery"></param>
        /// <returns></returns>
        Task<PageModel<AdminEntityOutput>> QueryPage(SysAdminEntityPageQuery pageQuery);

        /// <summary>
        /// 查询单个用户信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>

        Task<AdminEntityOutput> Get(string id);

        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="account"></param>
        /// <param name="pwd"></param>
        /// <returns></returns>
        Task<SysAdminEntity> Login(string account, string pwd);
    }
}
